<template>
  <div class="recommend-view">
    <div class="recommend">
      <div class="recommend-item" v-for="item in recommends" :key="item">
        <a :href="item.link">
          <img :src="item.image" />
          {{ item.title }}
        </a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "recommend view",
  props: {
    recommends: {
      type: Array,
      default() {
        return []
      }
    }
  }
};
</script>
<style>
.recommend {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
  /* border-top: 8px solid #eee; */
  border-bottom: 8px solid #eee;
}

.recommend-item {
  flex: 1;
}

.recommend-item img {
  box-sizing: border-box;
  padding: 6px;
  width: 100%;
}
</style>